package ooday05;
//狗  看门()     实现接口叫()    重写吃()     狗  鱼多态喝
public class Dog extends Animal implements Call{
    Dog(String name,int age,int index){
        super(name,age,index);
    }

    public void eat(){
        System.out.println("编号为"+index+"的小狗名叫"+name+"它正在吃骨头");
    }

    void lookDoor(){
        System.out.println(name+"正在看门");
    }

    public void call(){
        System.out.println(name+"正在大叫");
    }

}
